package com.railway.notice.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import cn.org.rapid_framework.util.DateConvertUtils;

public class Notice {
	
	private String id  ;
	private String title ;
	private String content ;
	private String creator  ;
	private Date createtime ;
	private Date expiretime ;
	private String expiretimestring1  ;
	private String expiretimestring  ;
	private String imgpath ;
	
	private String createtimestring = null;
	public String getCreatetimestring() {
		return DateConvertUtils.format(getCreatetime(), "yyyy-MM-dd");
		 
	}
	public void setCreatetimestring(String createtimestring) {
		this.createtimestring = createtimestring;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Date getExpiretime() {
		return expiretime;
	}
	public void setExpiretime(Date expiretime) {
		this.expiretime = expiretime;
	}
	public String getExpiretimestring() {
		return this.expiretimestring;
		//return DateConvertUtils.format(getExpiretime(), "yyyy-MM-dd");
		 
	}
	public void setExpiretimestring(String expiretimestring) {
		this.expiretimestring = expiretimestring;
	}
	public String getImgpath() {
		return imgpath;
	}
	public void setImgpath(String imgpath) {
		this.imgpath = imgpath;
	}
	public String getExpiretimestring1() {
		return DateConvertUtils.format(getExpiretime(), "yyyy-MM-dd");
	}
	public void setExpiretimestring1(String expiretimestring1) {
		this.expiretimestring1 = expiretimestring1;
	}

}
